Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Card branch #194

Merged
merged 8 commits into from
May 4, 2024
Merged

Card branch #194

merged 8 commits into from
May 4, 2024

Conversation

andyjones81
Copy link
Collaborator

Mergin in the card component changes to main, along with bug fixes, broken anchor links and other fixes.

@andyjones81 andyjones81 merged commit c3debbf into main May 4, 2024
2 checks passed
@andyjones81 andyjones81 deleted the card-branch branch May 4, 2024 11:13
const parts = path.split('.')
parts.pop()
path = parts.join('.')
res.redirect(path)

Check warning

Code scanning / CodeQL

Server-side URL redirect Medium

Untrusted URL redirection depends on a
user-provided value
.
Comment on lines 94 to +102
app.get('/downloads/:filename', (req, res) => {
const filename = req.params.filename;
const filePath = path.join(__dirname, '/app/assets/downloads/' + filename);
const filename = req.params.filename
const filePath = path.join(__dirname, '/app/assets/downloads/' + filename)
// Set appropriate headers
// res.setHeader('Content-Type', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document');
res.setHeader('Content-Disposition', `attachment; filename=${filename}`);
res.setHeader('Content-Disposition', `attachment; filename=${filename}`)
// Send the file
res.sendFile(filePath);
});
res.sendFile(filePath)
})

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
a file system access
, but is not rate-limited.
// Send the file
res.sendFile(filePath);
});
res.sendFile(filePath)

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant